﻿<Window x:Class="WPFSpark.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:WPFSpark="clr-namespace:WPFSpark"
        Title="MainWindow" Height="441"
        Width="464"
      
        Background="Wheat">
    <Window.Resources>
        <LinearGradientBrush x:Key="CheckedStateBrush"
                             EndPoint="0,1"
                             StartPoint="0,0">
            <GradientStop Color="#1E41A5"
                          Offset="0" />
            <GradientStop Color="#2F6AEA"
                          Offset="0.5" />
            <GradientStop Color="#6298FE"
                          Offset="1" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="UncheckedStateBrush"
                             EndPoint="0,1"
                             StartPoint="0,0">
            <GradientStop Color="#FF81230E" />
            <GradientStop Color="#FFF15910"
                          Offset="0.365" />
            <GradientStop Color="#FFF5A782"
                          Offset="1" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="UncheckedStateBrushBW"
                             EndPoint="0,1"
                             StartPoint="0,0">
            <GradientStop Color="#FF454343"
                          Offset="0.004" />
            <GradientStop Color="#FFB8B8B8"
                          Offset="0.364" />
            <GradientStop Color="#F1F1F1"
                          Offset="1" />
        </LinearGradientBrush>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="281*" />
            <RowDefinition Height="121*" />
        </Grid.RowDefinitions>
        <Label Content="Option1"
               Height="38"
               HorizontalAlignment="Left"
               Margin="52,35,0,0"
               Name="label1"
               VerticalAlignment="Top"
               Width="141"
               FontSize="18"
               HorizontalContentAlignment="Right" />

        <WPFSpark:ToggleSwitch Background="Black"
                               ThumbWidth="70"
                               BorderThickness="2"
                               CheckedForeground="White"
                               CheckedText=""
                               CornerRadius="10"
                               FontFamily="Tahoma"
                               FontSize="18"
                               FontWeight="Normal"
                               Height="37"
                               HorizontalAlignment="Left"
                               Margin="228,36,0,0"
                               x:Name="toggleSwitch3"
                               Padding="0"
                               ThumbBorderThickness="2"
                               ThumbCornerRadius="7"
                               ThumbGlowColor="Gray"
                               ThumbShineCornerRadius="6,6,3,3"
                               UncheckedForeground="Black"
                               UncheckedText=""
                               VerticalAlignment="Top"
                               Width="98"
                               UncheckedBackground="{DynamicResource UncheckedStateBrush}">
            
            <Interactive:ToggleSwitch.CheckedBackground>
                <LinearGradientBrush EndPoint="0,1"
                                     StartPoint="0,0">
                    <GradientStop Color="#FF106011"
                                  Offset="0" />
                    <GradientStop Color="#FF1DB43B"
                                  
                                  Offset="0.496" />
                    <GradientStop Color="#FF62FE7A"
                                  Offset="1" />
                </LinearGradientBrush>
            </Interactive:ToggleSwitch.CheckedBackground>
            <Interactive:ToggleSwitch.BorderBrush>
                <LinearGradientBrush EndPoint="0,0"
                                     StartPoint="0,1">
                    <GradientStop Color="#959595"
                                  Offset="0" />
                    <GradientStop Color="#A1A1A1"
                                  Offset="0.5" />
                    <GradientStop Color="#555555"
                                  Offset="1" />
                </LinearGradientBrush>
            </Interactive:ToggleSwitch.BorderBrush>
            <Interactive:ToggleSwitch.ThumbBackground>
                <LinearGradientBrush EndPoint="0,1"
                                     StartPoint="0,0">
                    <GradientStop Color="#C1C1C1"
                                  Offset="0" />
                    <GradientStop Color="#A5A5A5"
                                  Offset="0.5" />
                    <GradientStop Color="#FCFCF6"
                                  Offset="1" />
                </LinearGradientBrush>
            </Interactive:ToggleSwitch.ThumbBackground>
            <interactive:ToggleSwitch.ThumbBorderBrush>
                <LinearGradientBrush EndPoint="0,1"
                                     StartPoint="0,0">
                    <GradientStop Color="#F6F6F6"
                                  Offset="0" />
                    <GradientStop Color="#959595"
                                  Offset="0.5" />
                    <GradientStop Color="#565656"
                                  Offset="1" />
                </LinearGradientBrush>
            </interactive:ToggleSwitch.ThumbBorderBrush>
        </WPFSpark:ToggleSwitch>

    </Grid>
</Window>
